package com.huilang;

public class te1 {
    public static void main(String[] args) {
        System.out.println(Singleton1.getSingleton1()==Singleton1.getSingleton1());

    }
}

class Singleton1 {
    private Singleton1() {
    }
    private static final Singleton1 singleton1;
    static {
         singleton1 = new Singleton1();
    }

    public static Singleton1 getSingleton1() {

        return singleton1;
    }
}